class InvitePersonModel {
  int? userid;
  String? usercode;
  String? nickname;
  String? avatar;
  int? gender;
  int? age;
  int? inviterIncome;
  String? city;
  int? vipLevel;
  String? addTime;

  InvitePersonModel(
      {userid,
        usercode,
        nickname,
        avatar,
        gender,
        age,
        inviterIncome,
        city,
        vipLevel,
        addTime});

  InvitePersonModel.fromJson(Map<String, dynamic> json) {
    userid = json['userid'];
    usercode = json['usercode'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    gender = json['gender'];
    age = json['age'];
    inviterIncome = json['inviter_income'];
    city = json['city'];
    vipLevel = json['vip_level'];
    addTime = json['add_time'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userid'] = userid;
    data['usercode'] = usercode;
    data['nickname'] = nickname;
    data['avatar'] = avatar;
    data['gender'] = gender;
    data['age'] = age;
    data['inviter_income'] = inviterIncome;
    data['city'] = city;
    data['vip_level'] = vipLevel;
    data['add_time'] = addTime;
    return data;
  }
}
